// JavaScript Document
function abrirPopUp(url){
	window.open(url, 'novo', 'top=200, left=300, sidebar=no, toolbar=no, location=no, resizable=no, directories=no, menubar=no, status=no, width=600, height=250' );
}

function abrirPopUpParam(url, p1){	
	popup = window.open(url, 'novo', 'top=200, left=300, sidebar=no, toolbar=no, location=no, resizable=no, directories=no, menubar=no, status=no, width=600, height=250');		
	popup.document.forms['editarCategoria'].descricao.value = p1;	
}

function confirma(param)
{		
	if( confirm('Deseja excluir?') )
	{		
		window.open('FexcluirCategoria.php?cod='+param, 'novo', 'top=200, left=300, sidebar=no, toolbar=no, location=no, resizable=no, directories=no, menubar=no, status=no, width=600, height=250' );
	}else
	{
		return '';
	}
	
}

